Skip to content

Instantly share code, notes, and snippets.

@idleberg
idleberg / vscode-macos-context-menu.md
Last active May 17, 2024 14:32
“Open in Visual Studio Code” in macOS context-menu

Open in Visual Studio Code

  • Open Automator
  • Create a new document
  • Select Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
    • your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later
    • older versions of macOS use /bin/bash
  • if you're using something else, you probably know what to do 😉
@DaniilBabanin
DaniilBabanin / monaco-editor-textfield.js
Last active May 17, 2024 14:30
Userscript that adds monaco editor ro gitlab textfields
// ==UserScript==
// @name Add Monaco Editor to input fields
// @namespace Violentmonkey Scripts
// @match https://gitlab.org/*
// @grant none
// @version 1.0
// @author Daniil Babanin & CHATGPT4o
// @description Replace a specific textarea with Monaco Editor
// ==/UserScript==
@smyers119
smyers119 / erspan.sh
Last active May 17, 2024 14:30
erspan
#!/bin/bash
# This script is meant to be run as root at boot via cron
# add "@reboot /root/erspan.sh" to crontab -e
# you can have multiple scripts for multiple tunnels
# This will allow you to set up a Erspan v1 tunnel and mirror all traffic from interface x to the erspan
# Author: Steven Myers samyers911@gmail.com
######Configure#####
#Direction ingress=port to erspan, egress= erspan to port
direction=ingress
@vested-sigil
vested-sigil / notion.yaml
Created January 26, 2024 00:07
swagger spec for notion.so for custom GPTS
openapi: 3.0.0
info:
title: Notion API
description: API for interacting with Notion resources such as pages and databases.
version: 1.0.0
servers:
- url: https://api.notion.com/v1
description: Main API server
paths:
/pages/{page_id}:
@jt0in3e
jt0in3e / mbsync-notify.sh
Last active May 17, 2024 14:26 — forked from nlamirault/gist:38cfc46682eaeb28709e
Sync emails with mbsync and get notifications on new emails
#!/usr/bin/bash
#
# Script to notify user for new mails.
# Crontab ex:
# */3 * * * * $HOME/.local/scripts/mbsync-notify.sh [acc_name]
#
# do not duplicate
killall mbsync &>/dev/null
@aoleary
aoleary / Basic Guide on how to build a ROM
Last active May 17, 2024 14:25
Basic Guide on how to build a ROM
There are I would say 4 main steps:
1. Setup Linux to build
2. Download the ROM source
3. Download and configure the device trees for the ROM
4. Build the ROM
Step 1. Setup Linux to build
Taken from here: https://github.com/nathanchance/Android-Tools/blob/master/Guides/Building_AOSP.txt
@scyto
scyto / proxmox.md
Last active May 17, 2024 14:23
proxmox cluster proof of concept

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@Linescoder
Linescoder / 300-free-discord-nitro-links.txt
Created May 17, 2024 14:19 — forked from MaciejkaG/300-free-discord-nitro-links.txt
300 Free Discord Nitro 1 Month Trial Links
@xanderificnl
xanderificnl / config application.rb
Last active May 17, 2024 14:19
(Postgres) Rails with ulid primary keys
module SomeApp
class Application < Rails::Application
config.active_record.schema_format = :sql
config.generators do |generator|
generator.orm :active_record, primary_key_type: :ulid
end
end
end
@CodaFi
CodaFi / AlgorithmW.swift
Last active May 17, 2024 14:18
A Swift Playground containing Martin Grabmüller's "Algorithm W Step-by-Step"
/// Playground - noun: a place where people can play
/// I am the very model of a modern Judgement General
//: # Algorithm W
//: In this playground we develop a complete implementation of the classic
//: algorithm W for Hindley-Milner polymorphic type inference in Swift.
//: ## Introduction